<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:32:"./app/admin\view\index-home.html";i:1594862449;s:61:"D:\phpstudy_pro\WWW\www.wjjyzx.com\app\admin\view\header.html";i:1594791432;s:61:"D:\phpstudy_pro\WWW\www.wjjyzx.com\app\admin\view\footer.html";i:1593325323;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">  
  <title>网家教育资讯后台管理</title>
  <link rel="stylesheet" href="/public/layui/css/layui.css">
  <link rel="stylesheet" href="/public/css/admin.css?1.2">
  <script src="/public/layui/layui.js"></script>
  <script src="/public/js/jquery-3.4.1.min.js"></script>
</head>
<body class="layui-layout-body" style="overflow: auto;">
 
<div style="padding: 20px;">
<div style="padding: 20px; background-color: #F2F2F2;">
 
 <div style="overflow: auto;">
<table class="layui-table" lay-size="lg">
  <colgroup>
    <col width="200">
    <col width="400">
    <col width="200">
    <col width="400">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th>名称</th>
      <th>统计</th>
      <th>名称</th>
      <th>统计</th>
    </tr> 
  </thead>
  <tbody>
    <tr>
      <td>今日注册会员</td>
      <td><?php echo fun_tj('member','regtime', Date_k(0), 'regtime', Date_k(1), array('open'=>1)); ?> 位</td>
      <td>本月注册会员</td>
      <td><?php echo fun_tj('member','regtime', Date_k(-30), 'regtime', Date_k(1), array('open'=>1)); ?> 位</td>
    </tr>
    <tr>
      <td>今日投稿共计</td>
       <td><?php echo fun_tj('model_whole','time', Date_k(0), 'time', Date_k(1), array('open'=>1)); ?> 篇</td>
      <td>本月投稿共计</td>
       <td><?php echo fun_tj('model_whole','time', Date_k(-30), 'time', Date_k(1), array('open'=>1)); ?> 篇</td>
    </tr>
    <tr>
      <td>今日后台被登录</td>
       <td><?php echo fun_tj('user_admin_log','time', Date_k(0), 'time', Date_k(1), array()); ?> 次</td>
      <td>今日后台登录错误</td>
       <td><?php echo fun_tj('user_admin_log','time', Date_k(0), 'time', Date_k(1), array('open'=>0)); ?> 次</td>
    </tr>
  </tbody>
</table>
</div>
<div class="layui-card">
  <div class="layui-card-header" style="color: #595858; padding: 0 30px;">特别提醒</div>
  <div class="layui-card-body" style="color: #595858;padding:20px 30px;line-height: 40px;">
    个人用户可永久免费使用，企业、公司、组织必须购买授权方能用于正式建站。<br>
    未授权程序禁止去掉网家教育资讯管理系统前后台的版权链接<br>
    不得隐藏,或者任意方式去掉网家教育资讯管理系统版权 且导致的一切损失由使用者自行承担。<br>
  </div>
</div>
<?php if(banben() > config('bb.banben')): ?>
 <form method="post" class="layui-form" style="overflow: auto;">
<table class="layui-table">
  <colgroup>
    <col width="150">
    <col>
  </colgroup>
  <tbody>
    <tr>
      <td><input type="text" name="title" value=""  placeholder="去www.wjjyzx.com复制你要的升级包’" autocomplete="off" lay-verify="required" class="layui-input" style="width: 350px;float: left;"></td>
      <td><button style="float: left;line-height: 38px;margin: 0 20px;background-color: #000;" class="layui-btn" lay-submit="" lay-filter="sj_add">升级</button></td>
    </tr>
  </tbody>
</table> 
</form>
  <script>
layui.use(['form'],function(){
  var form = layui.form
  ,jq = layui.jquery;
  form.on('submit(sj_add)', function(data){
    loading = layer.load(2, {
      shade: [0.2,'#000']
    });
    var param = data.field;
    jq.post('<?php echo url("index/sj"); ?>',param,function(data){
    	if (data.code == 200) {
    		layer.close(loading);
    		layer.msg(data.msg, {
    			icon: 1,
    			time: 1000
    		}, function() {
    		    location.href = '<?php echo url("index/ad"); ?>';
    	    });
        } else {
        	layer.close(loading);
        	layer.msg(data.msg, {
        		icon: 2,
        		anim: 6,
        		time: 1000
        	});
        }
    });
    return false;
  });

})
</script>
<?php endif; ?>
<table class="layui-table" lay-size="lg">
  <colgroup>
    <col width="200">
    <col>
  </colgroup>
    <tr>
      <td>版本信息</td>
      <td>网家教育资讯管理系统 V1.0 - 最新版本</td>
    </tr>
    <tr>
      <td>程序状态</td>
      <td><?php if(state() == '1'): ?><font color="#1e9fff">正版授权</font> 到期时间 <font color="#1e9fff"><?php if(yumi(1) > '2145888000'): ?>永久<?php else: ?><?php echo date("Y-m-d ", yumi(1)); endif; ?> </font><?php else: ?><font color="#ff5722">未授权</font>  <a href="http://www.115cms.com/" target="_blank">购买</a><?php endif; ?></td>
    </tr>
    <tr>
      <td>服务器类型</td>
      <td><?php echo php_uname('s'); ?></td>
    </tr>
    <tr>
      <td>PHP版本</td>
      <td><?php echo PHP_VERSION; ?></td>
    </tr>
    <tr>
      <td>Zend版本</td>
      <td><?php echo Zend_Version(); ?></td>
    </tr>
    <tr>
      <td>服务器解译引擎</td>
      <td><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
    </tr>
    <tr>
      <td>服务器语言</td>
      <td><?php echo $_SERVER['HTTP_ACCEPT_LANGUAGE']; ?></td>
    </tr>
    <tr>
      <td>服务器Web端口</td>
      <td><?php echo $_SERVER['SERVER_PORT']; ?></td>
    </tr>
    <tr>
      <td>您当前的域名</td>
      <td><?php echo $_SERVER['HTTP_HOST']; ?></td>
    </tr>
    <tr>
      <td>程序作者</td>
      <td>合肥网家商务信息有限公司</td>
    </tr>
    <tr>
      <td>官方QQ群</td>
      <td><a href="https://jq.qq.com/?_wv=1027&k=5vuyfqb" target="_blank">官方QQ群XXXXXXXXX</a></td>
    </tr>
  </tbody>
</table>
</div>  
<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
});
layui.use('layer', function(){ 
  var $ = layui.jquery, layer = layui.layer; 
  var active = {
    admin_set: function(){
      var that = this; 
      var url = $(this).attr('url');
      layer.open({
        type: 2 
        ,title: '115CMS.COM'
        ,area: ['100%', '100%']
        ,shade: 0
        ,maxmin: true
        ,content: url
        ,btn: ['关闭'] 
        ,btn2: function(){
          layer.closeAll();
        }
        ,zIndex: layer.zIndex 
        ,success: function(layero){
          layer.setTop(layero); 
        }
      });
    }
  };
  $('#admin_set .layui-btn').on('click', function(){
    var othis = $(this), method = othis.data('method');
    active[method] ? active[method].call(this, othis) : '';
  });
});
layui.use('form',function(){
  var form = layui.form
  ,jq = layui.jquery;
  //更新
  form.on('switch(index)', function(data){
    loading = layer.load(2, {
      shade: [0.2,'#000']
    });
     var url= jq(this).attr('url');
    var param = data.field;
    jq.post(url,param,function(data){
      if(data.code == 200){
        layer.close(loading);
        layer.msg(data.msg, {icon: 6, time: 1000}, function(){
         //location.reload();
        });
      }else{
        layer.close(loading);
        layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
      }
    });
    return false;
  });
  //删除
  form.on('submit(delete)', function(data){
    var param = data.field;
    var name = jq(this).attr('member-name');
    var url= jq(this).attr('url');
    //弹出提示
    layer.confirm(''+name+'', function(index){
    loading = layer.load(2, {
      shade: [0.2,'#000']
    });
    jq.post(url,param,function(data){
	
      if(data.code == 1){
        layer.close(loading);
        layer.msg(data.msg, {icon: 1, time: 1000}, function(){
         location.reload();
        });
      }else{
        layer.close(loading);
        layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
      }
    });
    return false;
  });
  });
});
</script>
</body>
</html>